﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: OrderItemEntity.cs
// 修改时间：2020-9-8 10:40:07
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：OrderItem 的实体类.
	/// </summary>
	[Table("OrderItem")]
	public partial class OrderItemEntity
	{
		#region Properties
		private int? _itemID = 0;
		/// <summary>
		/// ID(主键)
		/// </summary>
		[Column("ItemID",TypeName="int")]
		[Key]
		public int? ItemID
		{
			get {return _itemID;}
			set {_itemID = value;}
		}
		
		private int? _orderID = 0;
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column("OrderID",TypeName="int")]
		public int? OrderID
		{
			get {return _orderID;}
			set {_orderID = value;}
		}
		
		private int? _productID = 0;
		/// <summary>
		/// 产品ID
		/// </summary>
		[Column("ProductID",TypeName="int")]
		public int? ProductID
		{
			get {return _productID;}
			set {_productID = value;}
		}
		
		private System.String _tableName = string.Empty;
		/// <summary>
		/// 表名
		/// </summary>
		[Column("TableName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TableName
		{
			get {return _tableName;}
			set {_tableName = value;}
		}
		
		private System.String _property = string.Empty;
		/// <summary>
		/// 属性，如果是单一商品这属性为空
		/// </summary>
		[Column("Property",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Property
		{
			get {return _property;}
			set {_property = value;}
		}
		
		private int? _saleType = 0;
		/// <summary>
		/// 销售类型  1--正常销售  2--换购  3--赠送  4--批发
		/// </summary>
		[Column("SaleType",TypeName="int")]
		public int? SaleType
		{
			get {return _saleType;}
			set {_saleType = value;}
		}
		
		private decimal? _price_Market = 0;
		/// <summary>
		/// 原价
		/// </summary>
		[Column("Price_Market",TypeName="money")]
		public decimal? Price_Market
		{
			get {return _price_Market;}
			set {_price_Market = value;}
		}
		
		private decimal? _price = 0;
		/// <summary>
		/// 系统计算出的销售价
		/// </summary>
		[Column("Price",TypeName="money")]
		public decimal? Price
		{
			get {return _price;}
			set {_price = value;}
		}
		
		private decimal? _price_Activity = 0;
		/// <summary>
		/// 活动价
		/// </summary>
		[Column("Price_Activity",TypeName="money")]
		public decimal? Price_Activity
		{
			get {return _price_Activity;}
			set {_price_Activity = value;}
		}
		
		private decimal? _price_Settlement = 0;
		/// <summary>
		/// 结算价
		/// </summary>
		[Column("Price_Settlement",TypeName="money")]
		public decimal? Price_Settlement
		{
			get {return _price_Settlement;}
			set {_price_Settlement = value;}
		}
		
		private decimal? _truePrice = 0;
		/// <summary>
		/// 实际销售价
		/// </summary>
		[Column("TruePrice",TypeName="money")]
		public decimal? TruePrice
		{
			get {return _truePrice;}
			set {_truePrice = value;}
		}
		
		private int? _amount = 0;
		/// <summary>
		/// 订购数量
		/// </summary>
		[Column("Amount",TypeName="int")]
		public int? Amount
		{
			get {return _amount;}
			set {_amount = value;}
		}
		
		private decimal? _subTotal = 0;
		/// <summary>
		/// 订购金额
		/// </summary>
		[Column("SubTotal",TypeName="money")]
		public decimal? SubTotal
		{
			get {return _subTotal;}
			set {_subTotal = value;}
		}
		
		private DateTime? _beginDate = null;
		/// <summary>
		/// 开始计算服务期限日期
		/// </summary>
		[Column("BeginDate",TypeName="datetime")]
		public DateTime? BeginDate
		{
			get {return _beginDate;}
			set {_beginDate = value;}
		}
		
		private double? _serviceTerm = 0.0f;
		/// <summary>
		/// 服务期限
		/// </summary>
		[Column("ServiceTerm",TypeName="float")]
		public double? ServiceTerm
		{
			get {return _serviceTerm;}
			set {_serviceTerm = value;}
		}
		
		private int? _serviceTermUnit = 0;
		/// <summary>
		/// 服务年限单位　0－年，1－月，2－日
		/// </summary>
		[Column("ServiceTermUnit",TypeName="int")]
		public int? ServiceTermUnit
		{
			get {return _serviceTermUnit;}
			set {_serviceTermUnit = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Remark",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		private decimal? _presentMoney = 0;
		/// <summary>
		/// 返还的现金券
		/// </summary>
		[Column("PresentMoney",TypeName="money")]
		public decimal? PresentMoney
		{
			get {return _presentMoney;}
			set {_presentMoney = value;}
		}
		
		private int? _presentPoint = 0;
		/// <summary>
		/// 赠送点券
		/// </summary>
		[Column("PresentPoint",TypeName="int")]
		public int? PresentPoint
		{
			get {return _presentPoint;}
			set {_presentPoint = value;}
		}
		
		private int? _presentExp = 0;
		/// <summary>
		/// 赠送的积分
		/// </summary>
		[Column("PresentExp",TypeName="int")]
		public int? PresentExp
		{
			get {return _presentExp;}
			set {_presentExp = value;}
		}
		
		private int? _productCharacter = 0;
		/// <summary>
		/// 商品性质
		/// </summary>
		[Column("ProductCharacter",TypeName="int")]
		public int? ProductCharacter
		{
			get {return _productCharacter;}
			set {_productCharacter = value;}
		}
		
		private System.String _productName = string.Empty;
		/// <summary>
		/// 商品名称
		/// </summary>
		[Column("ProductName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String ProductName
		{
			get {return _productName;}
			set {_productName = value;}
		}
		
		private System.String _unit = string.Empty;
		/// <summary>
		/// 单位
		/// </summary>
		[Column("Unit",TypeName="nvarchar(20)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Unit
		{
			get {return _unit;}
			set {_unit = value;}
		}
		
		private double? _weight = 0.0f;
		/// <summary>
		/// 重量
		/// </summary>
		[Column("Weight",TypeName="float")]
		public double? Weight
		{
			get {return _weight;}
			set {_weight = value;}
		}
		
		private decimal? _chargeDeliverItem = 0;
		/// <summary>
		/// 运费
		/// </summary>
		[Column("ChargeDeliverItem",TypeName="money")]
		public decimal? ChargeDeliverItem
		{
			get {return _chargeDeliverItem;}
			set {_chargeDeliverItem = value;}
		}
		
		private int? _deliverStatusItem = 0;
		/// <summary>
		/// 物流状态
		/// </summary>
		[Column("DeliverStatusItem",TypeName="int")]
		public int? DeliverStatusItem
		{
			get {return _deliverStatusItem;}
			set {_deliverStatusItem = value;}
		}
		
		private int? _payStatusItem = 0;
		/// <summary>
		/// 付款状态（0：未付款；1：已付款；2：已退款；）
		/// </summary>
		[Column("PayStatusItem",TypeName="int")]
		public int? PayStatusItem
		{
			get {return _payStatusItem;}
			set {_payStatusItem = value;}
		}
		
		private decimal? _downPayment = 0;
		/// <summary>
		/// 首付（元）
		/// </summary>
		[Column("DownPayment",TypeName="money")]
		public decimal? DownPayment
		{
			get {return _downPayment;}
			set {_downPayment = value;}
		}
		
		private decimal? _yearRate = 0;
		/// <summary>
		/// 年利率（%）
		/// </summary>
		[Column("YearRate",TypeName="money")]
		public decimal? YearRate
		{
			get {return _yearRate;}
			set {_yearRate = value;}
		}
		
		private decimal? _fee = 0;
		/// <summary>
		/// 手续费（%）
		/// </summary>
		[Column("Fee",TypeName="money")]
		public decimal? Fee
		{
			get {return _fee;}
			set {_fee = value;}
		}
		
		private decimal? _merchantRebate = 0;
		/// <summary>
		/// 给商户返点（%）
		/// </summary>
		[Column("MerchantRebate",TypeName="money")]
		public decimal? MerchantRebate
		{
			get {return _merchantRebate;}
			set {_merchantRebate = value;}
		}
		
		private int? _deadline = 0;
		/// <summary>
		/// 期限
		/// </summary>
		[Column("Deadline",TypeName="int")]
		public int? Deadline
		{
			get {return _deadline;}
			set {_deadline = value;}
		}
		
		private decimal? _subTotalHP = 0;
		/// <summary>
		/// 贷款金额（小计）
		/// </summary>
		[Column("SubTotalHP",TypeName="money")]
		public decimal? SubTotalHP
		{
			get {return _subTotalHP;}
			set {_subTotalHP = value;}
		}
		
		#endregion
	}
}
